package edu.ccut.titan.tag.report.design;

import java.util.ArrayList;
import java.util.List;

public class ReportDesignInfo {

	private List<ReportFieldInfo> fields = new ArrayList<ReportFieldInfo>();
	private List<ChartsInfo> charts = new ArrayList<ChartsInfo>();
	private CrosstabInfo crosstabInfo = new CrosstabInfo();
	List<HeaderInfo> headerInfos = new ArrayList<HeaderInfo>();
	List<FooterInfo> footerInfos = new ArrayList<FooterInfo>();
	private String title;
	private String sort;
	private String sortField;

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public void addCrosstab(CrosstabInfo crosstabInfo) {
		this.crosstabInfo = crosstabInfo;
	}

	public void addReportField(ReportFieldInfo field) {
		this.fields.add(field);
	}

	public void addChart(ChartsInfo chart) {
		this.charts.add(chart);
	}

	public void addHeaderInfo(HeaderInfo headerInfo) {
		this.headerInfos.add(headerInfo);
	}

	public void addFooterInfo(FooterInfo footerInfo) {
		this.footerInfos.add(footerInfo);
	}

	public List<ReportFieldInfo> getFileds() {
		return this.fields;
	}

	public List<ChartsInfo> getCharts() {
		return this.charts;
	}

	public CrosstabInfo getCrosstabInfo() {
		return crosstabInfo;
	}

	public List<HeaderInfo> getHeaderInfos() {
		return headerInfos;
	}

	public List<FooterInfo> getFooterInfos() {
		return footerInfos;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSortField() {
		return sortField;
	}

	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
}
